<?php
    
	add_filter('cv_init_options', 'slides_init_options');
	
	function slides_init_options($opt) {
 	  			
        $cycle_transition_style = array(
			'blindX'      => 'blindX',
			'blindY'      => 'blindY',
			'blindZ'      => 'blindZ',
			'cover'       => 'cover',
			'curtainX'    => 'curtainX',
			'curtainY'    => 'curtainY',
			'fade'        => 'fade',
			'fadeZoom'    => 'fadeZoom',
			'growX'       => 'growX',
			'growY'       => 'growY',
			'none'        => 'none',
			'scrollUp'    => 'scrollUp',
			'scrollDown'  => 'scrollDown',
			'scrollLeft'  => 'scrollLeft',
			'scrollRight' => 'scrollRight',
			'scrollHorz'  => 'scrollHorz',
			'scrollVert'  => 'scrollVert',
			'slideX'      => 'slideX',
			'slideY'      => 'slideY',
			'shuffle'     => 'shuffle',
			'turnUp'      => 'turnUp',
			'turnDown'    => 'turnDown',
			'turnLeft'    => 'turnLeft',
			'turnRight'   => 'turnRight',
			'uncover'     => 'uncover',
			'wipe'        => 'wipe',
			'zoom'        => 'zoom'
		);
		
		 $nivo_transition_style = array(
			'sliceDown' => 'sliceDown', 
			'sliceDownLeft' => 'sliceDownLeft',
			'sliceUp' => 'sliceUp',
			'sliceUpLeft' => 'sliceUpLeft',
			'sliceUpDown' => 'sliceUpDown',
			'sliceUpDownLeft' => 'sliceUpDownLeft',
			'fold' => 'fold',
			'fade' => 'fade',
			'random' => 'random',
			'slideInRight' => 'slideInRight',
			'slideInLeft' => 'slideInLeft',
			'boxRandom' => 'boxRandom',
			'boxRain' => 'boxRain',
			'boxRainReverse' => 'boxRainReverse',
			'boxRainGrow' => 'boxRainGrow',
			'boxRainGrowReverse' => 'boxRainGrowReverse'
		);
					
		$slider_type = array();
		$items = get_theme_support( 'cvincludes-slides' );
		if(isset($items[1])) {
			if(in_array('jquery_cycle', $items[1]))				
				$slider_type['jquery_cycle'] = 'jQuery Cycle';
			if(in_array('nivo_slider', $items[1]))				
				$slider_type['nivo_slider'] = 'Nivo Slider';
			if(in_array('lite_accordion', $items[1]))				
				$slider_type['lite_accordion'] = 'liteAccordion';
		}
		
		
//		$nivo_theme = array(
//			'theme-default' => 'theme-default',
//			'theme-orman' => 'theme-orman',
//			'theme-pascal' => 'theme-pascal'
//		);
			
		// The shortcode
		$opt[] = array( "name" => __("Slides Settings", hybrid_get_textdomain()),
							"type" => "heading");	
	
		$opt[] = array( "name" => __("Slider type", hybrid_get_textdomain()),
									"desc" => __("Choose the slider type.", hybrid_get_textdomain()),
									"id" => "sl_slider_type",
									"std" => 'jQuery Cycle',
									"type" => "select",
									"options" => $slider_type); 	
//		$opt[] = array( "name" => __("Nivo slider theme", hybrid_get_textdomain()),
//									"desc" => __("Choose the theme used in Nivo slider.", hybrid_get_textdomain()),
//									"id" => "sl_nivo_theme",
//									"std" => 'theme-default',
//									"type" => "select",
//									"options" => $nivo_theme); 
	
		$opt[] = array( "name" => __("jQuery-Cycle Transition style", hybrid_get_textdomain()),
									"desc" => __("jQuery-Cycle, choose the effect that is used to transition between slides.", hybrid_get_textdomain()),
									"id" => "sl_cycle_transition_style",
									"std" => 'fade',
									"type" => "select",
									"options" => $cycle_transition_style); 
		$opt[] = array( "name" => __("Nivo-Slider Transition style", hybrid_get_textdomain()),
									"desc" => __("Nivo-Slider, choose the effect that is used to transition between slides.", hybrid_get_textdomain()),
									"id" => "sl_nivo_transition_style",
									"std" => 'random',
									"type" => "select",
									"options" => $nivo_transition_style); 
		
		$opt[] = array( "name" => __("Slideshow quantiry", hybrid_get_textdomain()),
									"desc" => __("Choose the number of slides that are loaded in the slideshow.", hybrid_get_textdomain()),
									"id" => "sl_slide_quantity",
									"std" => '5',
									"type" => "text"); 		
		$opt[] = array( "name" => __("Transition speed", hybrid_get_textdomain()),
									"desc" => __("Slide transition speed in millisecond.", hybrid_get_textdomain()),
									"id" => "sl_transition_speed",
									"std" => '2000',
									"type" => "text");
		$opt[] = array( "name" => __("Slide duration", hybrid_get_textdomain()),
									"desc" => __("How long each slide will show in millisecond.", hybrid_get_textdomain()),
									"id" => "sl_slide_duration",
									"std" => '2000',
									"type" => "text");			

		$navis = array( 
			"disabled" => array ("placebo" => "placebo"),
			"enabled" => array ("placebo" => "placebo",
								'directionNav' => 'Direction Nav',
								'controlNav' => 'Control Nav')
		);
		$opt[] = array( "name" =>  __("Slideshow navigation", hybrid_get_textdomain()),
									"desc" => __("Enable the navigation buttons.", hybrid_get_textdomain()),
									"id" => "sl_slideshow_navigation",
									"std" => $navis,
									"type" => "sorter");		
		
		$opt[] = array( "name" => __("Load a specific slideshow", hybrid_get_textdomain()),
									"desc" => __("Enter the slug name of a slideshow, which will be shown in the slider. Leave this option black to show the latest slides.", hybrid_get_textdomain()),
									"id" => "sl_specific_slideshow",
									"std" => '',
									"type" => "text");	
		return $opt; 
}

?>
